﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MobileSMSQueue.aspx.cs" Inherits="Catering.Catering_Page.Mes.MobileSMSQueue" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="../../Style/zhezhao.js"></script>
    <script src="../../Style/xxk.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../../Style/head.css" />
    <link rel="stylesheet" type="text/css" href="../../Style/center.css" />
    <link rel="stylesheet" type="text/css" href="../../Style/zhezhao.css" />
    <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
     <style type="text/css">
        *
        {
            margin: 0px;
            padding: 0px;
        }
        body
        {
            font-size: 12px;
        }
        .data_css { width:998px; margin-top: 10px; height:auto; overflow-y: auto; overflow-x: hidden; border:#B0B0B0 1px solid; border-top:none; }
        .data_css th { background: url(../../Images/table_th_bg.gif) repeat-x 0px 0px; padding: 0px; text-align: center;  height: 32px; line-height:32px; font-size:13px; font-weight:bold; color:#0760ac;}
        .data_css td { text-align: center; border-bottom:1px dashed #b0b0b0; padding:0px; height:28px; line-height:28px; color:#666666; font-size:12px; }
        .btn_list
        {
            width: 99%;
            height: 30px;
            line-height: 30px;
            padding: 5px 0px;
            border: 1px solid #c2def6;
            background-color: #e5f1ff;
            margin-top: 10px;
        }
        img
        {
            border: 0px;
        }
    </style>
    <script type="text/javascript">
        var int;
        function reloadW(){
            int = self.setInterval(function () {
            window.location.reload();
        }, 20000);
        }
        var selectID = "li2_3";
        $(document).ready(function () {
            //reloadW();
            $(".xxk_button1>ul>li a").mouseover(function () {
                $(this).addClass("li_over");
            });
            $(".xxk_button1>ul>li a").mouseout(function () {
                if ($(this).attr("id") != selectID) {
                    $(this).removeClass("li_over");
                }
            });

            function onB()
            {
                if($("#checkbox2").attr("checked")==true){
   				window.clearInterval(int);
   			    }else{
                reloadW();
                 }
            }

        });

        function FQKCheck(obj) {
            $("input[name='CKOption']").attr("checked", obj.checked);
        }

        function DelCheck() {
            var ids = "";
            $("[name='CKOption']").each(function () {
                if (this.checked) {
                    ids += $(this).val() + ",";
                }
            });
            if (ids == "") {
                alert("请选择要删除的项！");
                return;
            }
            else {
                if (!confirm("您真的要删除所选？")) return;
            }
            $.ajax({
                type: "Post",
                url: "MobileSMSQueue.aspx/Del_More",
                data: "{'IDs':'" + ids + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    if (data.d == "OK") {
                        alert("删除成功！");
                        history.go(0);
                    }
                    else {
                        alert("删除失败！");
                    }
                }
            });
        }

        function RefreshPage() {
            window.location.reload();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="xxk_button1">
            <ul>
                <li><a id="li2_1" href="MobileSMS.aspx" class="li_out">&nbsp;&nbsp;手机短信发送</a></li>
                <li><a id="li2_2" href="MobileOutBox.aspx" class="li_out">&nbsp;&nbsp;已发送消息</a></li>
                <li><a id="li2_3" href="MobileSMSQueue.aspx" class="li_out li_over">&nbsp;&nbsp;在发送信息</a></li>
            </ul>
        </div>        
        <div class="Center_Content" id="div1" style="display: block">
            <div style="height:34px; width: 998px; background-color: #E5F1FF; border: 1px solid #C2DEF6;
                margin: 0px; margin-top: 10px;">
                <table border="0" cellpadding="0" cellspacing="0" width="998">
                    <tr>
                        <td align="right" height="34"><input type="button" class="input_btn_a" value=" 刷 新 " onclick="RefreshPage()" /></td>
                        <td width="100" align="right">
                            <input type="button" class="input_btn_a" value=" 删 除 " onclick="DelCheck()" />
                        </td>
                        <td width="10"></td>
                    </tr>
                </table>
            </div>
            <div class="data_css">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <thead>
                        <tr>
                            <th width="5%"><input type="checkbox" name="QKCheck" onclick="FQKCheck(this)" /></th>
                            <th width="5%">序号</th>
                            <th width="45%">内容</th>
                            <th width="15%">收信号码</th>
                            <th width="20%">发送时间</th>
                            <th width="10%">查看详细</th>
                         <!--   <th width="15%">删除</th>-->
                        </tr>
                    </thead>
                    <tbody>
                        <asp:Repeater ID="NoticeRept" runat="server">
                            <ItemTemplate>
                                <tr style="background: #ffffff" onmouseover="this.style.background='#E3F5FF'" onmouseout="this.style.background='#FFFFFF'">
                                    <td>
                                          <input type="checkbox" name="CKOption" value="<%#Eval("ID")%>" />
                                    </td>
                                    <td>
                                        <%# Eval("tempid") %>
                                        <asp:HiddenField ID="RPHFID" Value='<%# Eval("ID") %>' runat="server" />
                                    </td>
                                    <td>
                                          <%# subStr(Eval("Msg").ToString())%>
                                    </td>
                                    <td>
                                        <%#Eval("Name").ToString()%><%#Eval("ReceiverMobileNo").ToString()%>
                                    </td>
                                    <td>
                                        <%# Eval("SendTime")%>
                                    </td>
                                    <td>
                                        <a href='MobileSMSQueue.aspx?pageType=MobileOutBox&id=<%# Eval("ID") %>'><img alt="" src="../../Images/file.gif" /></a>
                                    </td>
                               <!--     <td>
                                        <a href='MobileSMSQueue.aspx?Deleteid=<%# Eval("ID") %>' onclick='return confirm("是否删除")'><img alt="" src="../../Images/trash.gif" /></a>
                                    </td>-->
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                </table>
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                   <%-- <td height="35" valign="middle" style="border-bottom:none; padding-top:5px">
                      <input type="checkbox" id="checkbox2" onchange="onB(this);"/>自动/手动刷新
                    </td>--%>
                        <td height="35" valign="middle" style="border-bottom:none;">
                            <div class="paper_n">
                                <ul>
                                    <li class="paper_H">
                                        <asp:HyperLink ID="InkFirst" runat="server">首页</asp:HyperLink></li>
                                    <li class="paper_U">
                                        <asp:HyperLink ID="InkPrev" runat="server">上一页</asp:HyperLink></li>
                                    <li class="paper_D">
                                        <asp:HyperLink ID="InkNext" runat="server">下一页</asp:HyperLink></li>
                                    <li class="paper_F">
                                        <asp:HyperLink ID="InkLast" runat="server">末页</asp:HyperLink></li>
                                </ul>
                            </div>
                            <div class="paper_n2">
                                <asp:Label ID="lblCurPage" runat="server"></asp:Label>
                                <asp:Label ID="Label6" runat="server" Text="每页12条"></asp:Label>
                            </div>
                        </td>
                    </tr>
            </table>
            </div>
        </div>
         <
        <!--遮罩层-->
        <div id="divbg" runat="server" class="bg"></div>
        <div id="divmain" class="center_div" runat="server" style="width:382px; height:282px; padding: 0px; margin-top: -100px; left:60%">
            <div class="div_0207" style="width:380px; margin:0px; height:280px;">
                <h1><img alt="" src="../../Images/cp_h1_03.gif" />消息详细</h1>
                <table border="0" width="340" height="253" cellpadding="0" cellspacing="0" align="center">
                    <tr>
                        <td height="30" align="left" valign="middle" style="color:#1D67C0;">
                            <asp:Label ID="lblSendTime" runat="server" Text="Label"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td runat="server" id="td_content" valign="top" height="173" style="border:1px solid #CDDEF8; line-height:20px; padding:5px;"></td>
                    </tr>
                    <tr>
                        <td align="center"><asp:LinkButton ID="LinkButton1" CssClass='input_btn_a' runat="server" onclick="LinkButton1_Click">关闭</asp:LinkButton></td>
                    </tr>
                </table>                
            </div>
        </div>
        <!--遮罩层结束-->
    </form>
</body>
</html>
